using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for DataProvider
/// </summary>
public class KFCConfiguration
{
    private static string dbConnectionString;

    public static string DbConnectionString
    {
        get { return KFCConfiguration.dbConnectionString; }
        //set { KFCConfiguration.dbConnectionString = value; }
    }

    private static String dbProviderName;

    public static String DbProviderName
    {
        get { return KFCConfiguration.dbProviderName; }
        //set { KFCConfiguration.dbProviderName = value; }
    }
    static KFCConfiguration()
    {
        dbConnectionString = ConfigurationManager.ConnectionStrings["KFCFastFoodConnectionString"].ConnectionString;
        dbProviderName = ConfigurationManager.ConnectionStrings["KFCFastFoodConnectionString"].ProviderName;
    }


    public KFCConfiguration()
	{
        
	}

    public static string MailServer 
    { 
        get { return ConfigurationManager.AppSettings["MailServer"]; } 
    } 
     
    public static bool EnableErrorLogEmail 
    { 
        get { return bool.Parse(ConfigurationManager.AppSettings["EnableErrorLogEmail"]); } 
    }

    public static string ErrorLogEmail
    {
        get
        {
            return ConfigurationManager.AppSettings["ErrorLogMail"];
        }
    }
    public static string MailUsername
    {
        get { return ConfigurationManager.AppSettings["MailUsername"]; }
    }

    public static string MailPassword
    {
        get { return ConfigurationManager.AppSettings["MailPassword"]; }
    }

    public static string MailFrom
    {
        get { return ConfigurationManager.AppSettings["MailFrom"]; }
    } 
}
